package com.pureut.storage.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.storage.domain.PickingPurchase;
import com.pureut.storage.dto.AndroidHandoverPdaDto;
import com.pureut.storage.dto.GetPdaDto;
import com.pureut.storage.dto.PickingPurchaseDto;
import com.pureut.storage.export.PickingPurchaseExport;
import com.pureut.storage.vo.PickingPurchaseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: CM
 * @date: 2022/12/30    13:51
 */
@Mapper
public interface PickingPurchaseMapper extends BaseMapper<PickingPurchase> {

    /**
     * 采购退货列表
     * @param pickingPurchaseVo
     * @return
     */
    List<PickingPurchaseDto> getPickingPurchaseList( PickingPurchaseVo pickingPurchaseVo);

    /**
     * 采购退货查看
     * @param id
     * @return
     */
    PickingPurchaseDto getPickingPurchaseById(@Param("id") Long id);


    List<GetPdaDto> getPickingPurchaseListPda(PickingPurchaseVo pickingPurchaseVo);

    /**
     * 采购退货交接列表
     * @param deptId
     * @return
     */
    List<AndroidHandoverPdaDto> getAndroidHandoverList(Long deptId);

    AndroidHandoverPdaDto getAndroidHandoverView(Long id);

    /**
     * 导出
     * @param pickingPurchaseVo
     * @return
     */
    List<PickingPurchaseExport> getInfoExport(PickingPurchaseVo pickingPurchaseVo);
}
